Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compiler] Redesign Repartition IR nodes to be naive coalesce only #12671

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tpoterba
Copy link
Contributor

@tpoterba tpoterba commented Feb 8, 2023

This changes the execution semantics for the Spark backend. Instead of dispatching either to (a) a two-pass algorithm that scans and coalesces (shuffle=False) or (b) a two-pass algorithm that shuffles and then rekeys (shuffle=True), we use write/read instead.

This changes the execution semantics for the Spark backend. Instead
of dispatching either to (a) a two-pass algorithm that scans and
coalesces (shuffle=False) or (b) a two-pass algorithm that shuffles
and then rekeys (shuffle=True), we use write/read instead.
Comment on lines -2014 to -2020
# test MatrixRepartition
if not hl.current_backend().requires_lowering:
rmt = hl.utils.range_matrix_table(20, 10, 3)
mt = rmt.repartition(5)
assert_contains_node(mt, ir.MatrixRepartition)
assert_unique_uids(mt)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rewrite this and the TableRepartition one to use naive_coalesce, so the handle_randomness implementations still have test coverage?

@danking danking dismissed patrick-schultz’s stale review February 7, 2024 16:09

get it done Patrick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants